package exception._5_20;

public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("main方法开始");
        try{
//            String line=null;
            String line="ss";
            System.out.println(line.length());
        }catch (Exception e){
            System.out.println("出错了!~");
        }finally {
            System.out.println("finally语句块");
        }
        System.out.println("main方法结束");
    }
}
